package edu.zut.cs.software.estateagent.property.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import edu.zut.cs.software.base.domain.BaseEntity;

@Table(name = "E_Property")//数据库中的表
@Entity//声明持久化类
public class Property extends BaseEntity {
	/**
	 * 
	 */
	/**
	 * @author wusudan
	 *
	 */
	private static final long serialVersionUID = 12423534612246L;
	@Column(name = "ADDRESS")
	String address;//地址
	@Column(name = "TYPE")
	String type;//类型

	@ManyToOne // 多对一
	@JoinColumn(name = "GROUP_ID")
	Holder holder;//房产*-1房主
	
	@Column(name = "CODE")
	String code;//编号
	
	@Column(name = "FULLNAME")
	String fullName;//名字
	public String getType() {
		return type;
		
	}
	
	public String getAddress() {
		return address;
	}
	public String getCode() {
		return code;
	}
	public Holder getVisitor() {
		return holder;
	}

	
	public String getFullName() {
		return fullName;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public void setType(String type) {
		this.type = type;
	}
	public void setHolder(Holder holder) {
		this.holder = holder;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	

}
